Skip to content

Fix NWB export with current PyNWB - #1598

Merged
pgunn merged 1 commit into
flatironinstitute:devfrom
Don-Yin:fix-nwb-export
Nov 29, 2026
Merged

pgunn merged 1 commit into
flatironinstitute:devfrom
Don-Yin:fix-nwb-export

Conversation

@Don-Yin

@Don-Yin Don-Yin commented Nov 27, 2026

Copy link
Copy Markdown

Description

Estimates.save_NWB fails with current PyNWB. PyNWB removed NWBFile.modules and add_data_interface, so the export stops with an AttributeError before anything is written. I switched them to nwbfile.processing and mod.add, which also exist in older PyNWB.

The new test saves a small Estimates to NWB and reads the fluorescence traces back.

test before and after the change

Fixes #1574

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Has your PR been tested?

caimanmanager test passes (49 tests) with PyNWB 3.1.3, and the new test also passes with PyNWB 4.2.0.

@pgunn

pgunn commented Nov 29, 2026

Copy link
Copy Markdown
Member

This is great work. Thanks!

@pgunn
pgunn merged commit 3afd81f into flatironinstitute:dev Nov 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants